package com.ruoyi.buss.qmcy.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.buss.qmcy.mapper.QmcyCustDkmxMapper;
import com.ruoyi.buss.qmcy.domain.QmcyCustDkmx;
import com.ruoyi.buss.qmcy.service.IQmcyCustDkmxService;

/**
 * 贷款明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-07-16
 */
@Service
public class QmcyCustDkmxServiceImpl implements IQmcyCustDkmxService 
{
    @Autowired
    private QmcyCustDkmxMapper qmcyCustDkmxMapper;

    /**
     * 查询贷款明细
     * 
     * @param dkzh 贷款明细ID
     * @return 贷款明细
     */
    @Override
    public QmcyCustDkmx selectQmcyCustDkmxById(String dkzh)
    {
        return qmcyCustDkmxMapper.selectQmcyCustDkmxById(dkzh);
    }

    /**
     * 查询贷款明细列表
     * 
     * @param qmcyCustDkmx 贷款明细
     * @return 贷款明细
     */
    @Override
    public List<QmcyCustDkmx> selectQmcyCustDkmxList(QmcyCustDkmx qmcyCustDkmx)
    {
        return qmcyCustDkmxMapper.selectQmcyCustDkmxList(qmcyCustDkmx);
    }

    /**
     * 新增贷款明细
     * 
     * @param qmcyCustDkmx 贷款明细
     * @return 结果
     */
    @Override
    public int insertQmcyCustDkmx(QmcyCustDkmx qmcyCustDkmx)
    {
        return qmcyCustDkmxMapper.insertQmcyCustDkmx(qmcyCustDkmx);
    }

    /**
     * 修改贷款明细
     * 
     * @param qmcyCustDkmx 贷款明细
     * @return 结果
     */
    @Override
    public int updateQmcyCustDkmx(QmcyCustDkmx qmcyCustDkmx)
    {
        return qmcyCustDkmxMapper.updateQmcyCustDkmx(qmcyCustDkmx);
    }

    /**
     * 批量删除贷款明细
     * 
     * @param dkzhs 需要删除的贷款明细ID
     * @return 结果
     */
    @Override
    public int deleteQmcyCustDkmxByIds(String[] dkzhs)
    {
        return qmcyCustDkmxMapper.deleteQmcyCustDkmxByIds(dkzhs);
    }

    /**
     * 删除贷款明细信息
     * 
     * @param dkzh 贷款明细ID
     * @return 结果
     */
    @Override
    public int deleteQmcyCustDkmxById(String dkzh)
    {
        return qmcyCustDkmxMapper.deleteQmcyCustDkmxById(dkzh);
    }
}
